package com.example.canteen.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class SetMealDTO {
    private String name;
    private long id;


    private CategoryDTO categoryDTO;

    private String categoryName;
    private Map<String, Integer> dishCount = new HashMap<>();

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Map<String, Integer> getDishCount() {
        return dishCount;
    }

    public void setDishCount(Map<String, Integer> dishCount) {
        this.dishCount = dishCount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @JsonIgnore
    public CategoryDTO getCategoryDTO() {
        return categoryDTO;
    }

    @JsonProperty

    public void setCategoryDTO(CategoryDTO categoryDTO) {
        this.categoryDTO = categoryDTO;
    }
}
